<template>
    <div>内容2</div>
</template>
<script>
import Event from '@/utils/eventBus';
export default{
    beforeCreate(){
        Event.$on('demo1',(v)=>{
            console.log(v);
        })
    }
}
</script>